﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 易发车网.Pages
{
    public partial class FormBan : Form
    {
        #region 字段变量
        public List<string> BanList = new List<string>();
        #endregion

        public FormBan(List<string> banlist)
        {
            InitializeComponent();
            BanList = banlist;
            textBox1.Text = string.Join("\n", banlist.ToArray());
        }

        private void button1_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.OK;
            BanList = textBox1.Text.Split('\n').ToList();
            Close();
        }
    }
}
